<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <div class="row">
                   <form  action="<?=url('admin.admin/edit',['admin_id'=>$detail->admin_id])?>" id="form-create" method="post" class="form-horizontal" role="form"> 
         <div class="form-group">
    <label class="col-sm-3 control-label no-padding-right">用户名：</label>
    <div class="col-sm-9">
            <?=$detail->username?>
    </div>
 </div>            
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right">密码：</label>
    <div class="col-sm-9">
            <input type="password"  value="******" placeholder="" id="password" name="password"  class="col-xs-10 col-sm-5" /> 
    </div>
 </div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"><span class="c-red">*</span>角色：</label>
    <div class="col-sm-9">
        <select class="form-control" name="role_id" id="role_id"> 
            <option value="0">请选择</option>
                <?php foreach($roles as $val) {?>
                <option <?php if($val['role_id'] == $detail->role_id){?> selected="selected" <?php }?> value="<?=$val['role_id']?>"><?=$val['role_name']?></option>
                <?php }?>
        </select>
        
    </div>
 </div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"><span class="c-red">*</span>真实姓名：</label>
    <div class="col-sm-9">
            <input type="text"  value="<?=isset($detail->real_name)?$detail->real_name:''?>" placeholder="" id="real_name" name="real_name"  class="col-xs-10 col-sm-5" /> 
    </div>
 </div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"><span class="c-red">*</span>手机号码：</label>
    <div class="col-sm-9">
            <input type="text"  value="<?=isset($detail->mobile)?$detail->mobile:''?>" placeholder="" id="mobile" name="mobile"  class="col-xs-10 col-sm-5" /> 
    </div>
 </div>

                    <div class="clearfix form-actions">
                            <div class="col-md-offset-3 col-md-9">
                                    <button mini="submit" for="form-create" class="btn btn-info" type="button">
                                            <i class="ace-icon fa fa-check bigger-110"></i>
                                            保存
                                    </button>

                                    &nbsp; &nbsp; &nbsp;
                                    <button class="btn" type="reset">
                                            <i class="ace-icon fa fa-undo bigger-110"></i>
                                            重置
                                    </button>
                            </div>
                    </div>
                   </form>

                </div></div>
        </div>
    </div>
</div>